package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProfitJifenMapper;
import com.ruoyi.system.domain.ProfitJifen;
import com.ruoyi.system.service.IProfitJifenService;

/**
 * 财务明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class ProfitJifenServiceImpl implements IProfitJifenService 
{
    @Autowired
    private ProfitJifenMapper profitJifenMapper;

    /**
     * 查询财务明细
     * 
     * @param id 财务明细主键
     * @return 财务明细
     */
    @Override
    public ProfitJifen selectProfitJifenById(Integer id)
    {
        return profitJifenMapper.selectProfitJifenById(id);
    }

    /**
     * 查询财务明细列表
     * 
     * @param profitJifen 财务明细
     * @return 财务明细
     */
    @Override
    public List<ProfitJifen> selectProfitJifenList(ProfitJifen profitJifen)
    {
        return profitJifenMapper.selectProfitJifenList(profitJifen);
    }

    /**
     * 新增财务明细
     * 
     * @param profitJifen 财务明细
     * @return 结果
     */
    @Override
    public int insertProfitJifen(ProfitJifen profitJifen)
    {
        return profitJifenMapper.insertProfitJifen(profitJifen);
    }

    /**
     * 修改财务明细
     * 
     * @param profitJifen 财务明细
     * @return 结果
     */
    @Override
    public int updateProfitJifen(ProfitJifen profitJifen)
    {
        return profitJifenMapper.updateProfitJifen(profitJifen);
    }

    /**
     * 批量删除财务明细
     * 
     * @param ids 需要删除的财务明细主键
     * @return 结果
     */
    @Override
    public int deleteProfitJifenByIds(Integer[] ids)
    {
        return profitJifenMapper.deleteProfitJifenByIds(ids);
    }

    /**
     * 删除财务明细信息
     * 
     * @param id 财务明细主键
     * @return 结果
     */
    @Override
    public int deleteProfitJifenById(Integer id)
    {
        return profitJifenMapper.deleteProfitJifenById(id);
    }
}
